package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeEditPasswordDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 新增员工
     * @param employeeDTO
     */
    void addEmployee(EmployeeDTO employeeDTO);

    /**
     * 员工分页查询
     * @param employeePageQueryDTO
     * @return
     */
    PageResult queryByPage(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 账号的禁用与启用
     * @param status
     */
    void enableAccout(Integer status,long id);

    /**
     * 编辑员工信息
     * @param employeeDTO
     */
    void editEmpInfo(EmployeeDTO employeeDTO);

    /**
     * 编辑员工信息前的数据回显
     * @param id
     */
    Employee queryById(long id);

    /**
     * 修改员工密码
     * @param employeeEditPasswordDTO
     */
    void editPassword(EmployeeEditPasswordDTO employeeEditPasswordDTO);
}
